package com.itheima.config;


import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@ComponentScan({"com.itheima.service,com.itheima.config"})//容器中添加配置好的bean+第三方的bean
@PropertySource("classpath:jdbc.properties")//从classes/包目录下查找配置文件
//@Import({JdbcConfig.class,MybatisConfig.class})//相当于配置的扫描，相当于@ComponentScan("Config"),但是还要写@Configutaiton

@EnableWebMvc
@EnableTransactionManagement//允许使用事务注解 @Transation
public class SpringConfig
{
}
